<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 <title>Document</title>
 <script>
                        var judge = prompt("输入数字判断奇偶数。")
                
                        judge = (judge % 2 == 0) ? alert("他是偶数") : alert("他是奇数");
                
                    </script>
</head>
<body>
                        
</body>
</html>